package db_sync

import (
	"shimmer/neusoft_club_backend/dao/domain"
	"shimmer/neusoft_club_backend/services"
)

func SyncDB() {
	err := services.DBEngine.AutoMigrate(
		new(domain.Account),
		new(domain.Assets),
		new(domain.Club),
		new(domain.ClubDepartmentStruct),
		new(domain.ClubForm),
		new(domain.ClubFormStatusFlow),
		new(domain.ClubInviteLink),
		new(domain.ClubPage),
		new(domain.ClubPageContentType),
		new(domain.ClubPosition),
		new(domain.ClubUserStruct),
		new(domain.PlatForm),
		new(domain.User),
		new(domain.UserActor),
		new(domain.UserApplication),
		new(domain.UserApplication),
		new(domain.AvatarAssets),
		new(domain.Message),
		new(domain.MessageRead),
	)
	if err != nil {
		panic(err.Error())
	}
}
